package com.appleat.springbootstart.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author dj.wang
 * @Date 2019/12/19 15:37
 * @Version V1.0
 */
@Configuration
@MapperScan("com.appleat.sprintbootstart.mapper")
public class MybatisConfig
{
    /**
     * mybatis-plus 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor()
    {
        return new PaginationInterceptor();
    }
}
